package com.hyk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyk.domain.SysMenu;
import com.hyk.mapper.SysMenuMapper;
import com.hyk.service.SysMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService{

    @Resource
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<SysMenu> findUserMenu(Long userId) {

        return sysMenuMapper.selectUserMenuById(userId);
    }
}
